Removed logout and change path for test_main