using default barrier to coordinate all threads and then test the specific barrier