separated error and warning tests