added unit test
some unit tests