Add test for array and object types