setup and teardown loginTest