That was the easy way to call a method from the session controller. It was necessary to log in in the app as admin in order to some test pass. Other solution is very welcome :)