fix tests for ~ and !~ operators

2 jobs for merge_issue_66 in 3 minutes and 3 seconds (queued for 2 seconds)