In #11974 I noticed that the tests seem to pass no matter what legacyOptimized gas costs were used for the deposit contract.
The expectation only got handled correctly with a value for --enforce-gas-cost-min-value 1 in isoltest and also soltest doesn't seem to fail on wrong expectation.