Shift manager

Add shift manager classes and fix a bug in a test case.