refactor oauthtickethelper to use interface
add unit tests for account controller