fix invalid character, modified tests