         var count = Pokemon.count(context: managedObjectContext, predicate: predicate, error: nil)
         XCTAssertEqual(8, count, "Count mismatch")
         
-        checkPreficate(expectedPredicate, resultPredicate: predicate)
+        checkPredicate(expectedPredicate, resultPredicate: predicate)
         
         predicate = NSPredicate.predicateBuilder("level", value: 1, predicateOperator: .NotEqual)
         expectedPredicate = NSPredicate(format: "level != 1")
-        checkPreficate(expectedPredicate, resultPredicate: predicate)
+        checkPredicate(expectedPredicate, resultPredicate: predicate)
         count = Pokemon.count(context: managedObjectContext, predicate: predicate, error: nil)
         XCTAssertEqual(6, count, "Count mismatch")
         
         predicate = NSPredicate.predicateBuilder("type", value: fireType, predicateOperator: .NotEqual)
         expectedPredicate = NSPredicate(format: "type != %@", fireType)
-        checkPreficate(expectedPredicate, resultPredicate: predicate)
+        checkPredicate(expectedPredicate, resultPredicate: predicate)
         count = Pokemon.count(context: managedObjectContext, predicate: predicate, error: nil)
         XCTAssertEqual(6, count, "Count mismatch")
         

        expectedPredicate = NSPredicate(firstPredicate: firstLevelPredicate, secondPredicate: secondLevelPredicate & namePredicate, predicateOperator: .Or)
        resultPredicate = NSPredicate(format: "(level > 1) OR (level =< 36 AND name == Charmender)")

        checkPreficate(expectedPredicate, resultPredicate: resultPredicate);
    }

    func testPredicateValueIn(){

        var count = Pokemon.count(context: managedObjectContext, predicate: predicate, error: nil)
        XCTAssertEqual(1, count, "Count mismatch")
        
        checkPredicate(expectedPredicate, resultPredicate: predicate)
        
        predicate = NSPredicate.predicateBuilder("level", value: 1, predicateOperator: .Equal)
        expectedPredicate = NSPredicate(format: "level == 1")
        checkPredicate(expectedPredicate, resultPredicate: predicate)
        count = Pokemon.count(context: managedObjectContext, predicate: predicate, error: nil)
        XCTAssertEqual(3, count, "Count mismatch")
        
        predicate = NSPredicate.predicateBuilder("type", value: fireType, predicateOperator: .Equal)
        expectedPredicate = NSPredicate(format: "type == %@", fireType)
        checkPredicate(expectedPredicate, resultPredicate: predicate)

        count = Pokemon.count(context: managedObjectContext, predicate: predicate, error: nil)
        XCTAssertEqual(3, count, "Count mismatch")
