added test controllers and tests of login