Improved test stucture, added working test with login