Add simplest test for ordered container & fix bug revealed by it