added unit test
Added test for user