Remove logout from test_main and included proper path