Added tests for array filter method.