test media rules for text