tests: register at length offset, not 1 byte

and properly calculate the us/page.