add test with predicats