Fix test frame to work on arbitrary origin.