 class FilterTests : BaseTestCase {
 
     func testCountEngineers() {
-        
         let engineerCount = try! managedObjectContext.from(Employee).filter({ $0.department.name == "Engineering" }).count()
         XCTAssertEqual(engineerCount, 8)
     }

        let employeeCount = try! managedObjectContext.from(Employee).filter({ employee in employee.salary.between(80000, and: 100000) }).count()
        XCTAssertEqual(employeeCount, 8)
    }
}
    }
    
    func testNumberOfDepartmentsWithEmployeesWhoseLastNamesStartWithSUsingSubquery() {
        let departmentCount = try! managedObjectContext.from(Department).filter{ department in
            department.employees.subquery("$e") {
                some($0.lastName.beginsWith("S", options: .CaseInsensitivePredicateOption))
            }.count > 0
