using assert_not instead of refute
Merge pull request #11868 from rajcybage/fix_refute

using assert_not instead of refute