use of NSPredicate on filter and added test case [AEROGEAR-938]