Update JSessionTest.php

Fix the failing session test. ```getFormToken``` calls ```JFactory::getSession``` so we need to set the session in JFactory
Actually I know - because the user object isn't in the session it always gives the default 0 value. Anyhow fixed