update the other variant of assertResultFailed to also return result