Removed uses of an_object and an_array from tests and examples