Add unit test for accounts controller