Use more appropriate asserts in re tests.
Now re tests work again on Unicode-disabled build.
Simplified existing detections of Unicode-disabled build.