Test helper method to clean up example