add passing test for array remove function