use of NSPredicate on filter and added test case [AEROGEAR-938]
fix brace level
more tests.
more tests.