Add tests for objects in the array