add offset tests for osx, netbsd