test case refactoring: push expect item to separate function
test case refactoring: push precondition to separate function
test case refactoring: push set up into separate function
refactor setUp
add state control to mouse pointer handler