offset: add tests