add fixes and tests for Protocol.windowHandlePosition
Merge pull request #341 from MoLLIa/master

Fixes and tests for Protocol.windowHandlePosition