- add doAssertReturns which checks the value of the returns parameter