add unit tests for users