Convert from *.rest to *.txt format

also now logs out from server after each test case