Corrected second test by modifying mainCharacter method