Better testing of AccountManager#removeAccount

Cleaned up some tests from #604.