Add tests for non-primitive type array