Add tests for array built-in methods