fixed bug in characterTest