Started writing unit tests.