New pop, push, shift behaviours. Modify document through mongodb update statement.
Test changed to check new behaviour.
changed tests to check new behaviour.
changed test to check new behaviour.