Changing expectations so as to avoid null pointer in failure.