add tests for when user manager throws