Added new test for variable shift index