Fixes build.
Converts tests to use XCTest.
Removes unused date formatter.
Replaces number with constant.