added first unit tests.