Added prelim unit tests.