backport fix for :test option passed