Fix specs that throw DeveloperErrors.