 import XCTest
 
 class LXNumberTransformerTests: XCTestCase {
-    func testAllocInit() {
+    func testInstance() {
         let numberTransformer = LXNumberTransformer()
         
         XCTAssertNil(numberTransformer.transformedValue(nil))
+        XCTAssertNil(numberTransformer.transformedValue(NSDate()))
         XCTAssertEqual(numberTransformer.transformedValue(123)!, 123)
         XCTAssertEqual(numberTransformer.transformedValue("456")!, 456)
         XCTAssertEqual(numberTransformer.transformedValue(1.23)!, 1.23)
         XCTAssertEqual(numberTransformer.transformedValue("4.56")!, 4.56)
+        
+        XCTAssertTrue(LXNumberTransformer.allowsReverseTransformation())
         
         XCTAssertNil(numberTransformer.reverseTransformedValue(nil))
         XCTAssertEqual(numberTransformer.reverseTransformedValue(123)!, "123")

            XCTFail()
        }
    }
}

        XCTAssertNil(numberTransformer.reverseTransformedValue("4.56"))
    }
    
    func testForName() {
        if let numberTransformer = NSValueTransformer(forName: LXNumberTransformerName) as? LXNumberTransformer {
            XCTAssertNil(numberTransformer.transformedValue(nil))
            XCTAssertNil(numberTransformer.transformedValue(NSDate()))
            XCTAssertEqual(numberTransformer.transformedValue(123)!, 123)
            XCTAssertEqual(numberTransformer.transformedValue("456")!, 456)
            XCTAssertEqual(numberTransformer.transformedValue(1.23)!, 1.23)
            XCTAssertEqual(numberTransformer.transformedValue("4.56")!, 4.56)
            
            XCTAssertTrue(LXNumberTransformer.allowsReverseTransformation())
            
            XCTAssertNil(numberTransformer.reverseTransformedValue(nil))
            XCTAssertEqual(numberTransformer.reverseTransformedValue(123)!, "123")
