Simplify / Fix request usage in tests
use the connections registry from the test framework to cleanup the temporary request at the end of the test.
fix a problem that after self.publish() the request was cleared
use the connections registry from the test framework to cleanup the temporary request at the end of the test.
fix a problem that after self.publish() the request was cleared