Add a test for implicit parent with threads