unit tests for tokens.saveUser