Added new setAllowedRotations API in the screen obj and new test cases.