Add login tests, fix default controller