Proper testing of login nad tickets done. Closes #242