test for orientation change