Added login test code