add AccountController tests, fix bug in RegisterRequest