Fixed test compilation problems
Fixed rotary_test