tests: Use usleep instead of nanosleep