Add test for array object methods.