fixed tests to do a logout on tear-down