refactored predicate tests to pytest