Initial attempt at unittests.