Added functional test for SecurityController and login