Added tests for AccountsCtrl

Added unit tests for AccountsCtrl functions I added for user story 3B