Added some most basic unit tests.