unit test for !~