Fixed a bug with Character test cases