selftest: Place the test environment at the end of the failure lines