Fixed a wrong test for monomials.