Add warnings to tests