Update unit tests

Replace special characters with truly invalid characters (after narrowing down the list of invalid characters in `StringValidator` subclasses).
Fix `test_libfiles` tests to work properly on non-Windows systems.
Cleanup