Add test and code for Rotation only supports Portrait.