shift offset test was not correct