but what was still more annoying , brom took all opportunities of turning him into ridicule in presence of his mistress , and had a scoundrel dog whom he taught to whine in the most ludicrous manner , and introduced as a rival of ichabod 's , to instruct her in psalmody .