Fix version enumeration in test.sh