Added unit-test project and some tests.