Added test for orientation detection