unshift/shift unit test and patch