remove -Wno-unused-result from test compilation commands

This just removes the same flag as 151b3ba from the tests, for older GCCs.