Anchor scroll offset

I pulled them out so that their function names made the tests easier to read rather than to DRY up the code. Are you sure it is better to put it inline?