added a test case for the rotation detection algorithm