Select correct element in order_details_spec to alter the quantity of

This test was working for SQLite, but in MySQL+PostgreSQL the order was different, causing the test to break.