randomtest fixes

4 files changed