added test for method integration to array prototype