Stop looking at settings.TEST. Fix #270.