Finished unit tests for user API, 100% coverage