Fix negative quickfix tests which use when