Update spec to expect the appropriate error