repaired character generator unit test