Fix tests which don't provide a request
Error message may change between Django versions.