fix unit tests

This should fix the Mac and iOS unit tests. I think I fixed the issue with the date formatter, and cleaned up some cruft where there was some preprocessor macros which would always be true, and then I removed the UI/NSColor tests.

Let me know if you want me to add those color tests back, I'm assuming they weren't needed anymore as the setters/getters for the transformable attribute were never implemented.