added an extra unit test for invalid characters