Added more assertions for pointer capture events

Added assert for invalid pointerId when calling set/releasePointerCapture method.
Test for target and release target while capturing.