Moved offset function from test util to source because it's now used in source