Fixed problems with tests, rand_objects.