Why is the code to set isPointerCapture to true in the test file but the code to set it to false in rPointerCapture() here in the support file? Either put both in the test case files, or put both in the functions in the support file. Symmetric code is easier to review, maintain and reuse.