add test for get array