Dont idle spin when no turn needed
Update test code to flush pipe