Add Tests for ObjectsWithCustomType