Testing output of compareWords