fix timeout reporting
minor timeout fix
minor cleanup and bug fixes
added random operation tests
minor change in random test cases