test case for debugging offset