Added unit test for mouse driven pan