Add tests for pointer capture events

Add tests for gotpointercapture and lostpointercapture events.