test array prototype method