utest: add ability to specify expected return-code value