Fix test case in no asserts build