Accounts controller context test
Private factory constructor