Target correct element in stock_managment_spec

This test worked in SQLite+MySQL, but not in PostgreSQL. This commit fixes that.