added test to check array