modify test case for DOMRect*