make test works on iOS
filter array method and test