Add tests for Position in rect