Added basic unit tests.