[#21] Added tests for mongodb ordering.