Add test for does_not_thread