added tests for users repository