 	
 	func testNot() {
 		let spec0 = RegexSpecification.pattern("hello")
-		let spec = NotSpecification(spec0)
+		let spec = spec0.not()
 		XCTAssertFalse(spec.isSatisfiedBy("hello"))
 		XCTAssertTrue(spec.isSatisfiedBy("world"))
 	}

		XCTAssertFalse(spec.isSatisfiedBy("abc"))
	}
	
	func testAnd() {
		let spec0 = RegexSpecification.pattern("^hello")
		let spec1 = RegexSpecification.pattern("world$")
		let spec = AndSpecification(spec0, spec1)
		XCTAssertTrue(spec.isSatisfiedBy("hello world"))
		XCTAssertTrue(spec.isSatisfiedBy("hello swift world"))
		XCTAssertFalse(spec.isSatisfiedBy("world hello"))

	func testOr() {
		let spec0 = RegexSpecification.pattern("hello")
		let spec1 = RegexSpecification.pattern("world")
		let spec = spec0.or(spec1)
		XCTAssertTrue(spec.isSatisfiedBy("hello world"))
		XCTAssertTrue(spec.isSatisfiedBy("hello"))
		XCTAssertTrue(spec.isSatisfiedBy("world"))
