Added some first unit tests.