a,b,g were globally defined now it is locally defined under the test_rotation() method