Add some tests for tests_should_end_in_test hook