Fixed errors with unshift chaining, now tests are passed.