tests: Fixed unit test failures due to login form changes