added test cases for matrix rotation