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

ineffective notice, use console.log as well