added tests for Array.filter