fix font-family for :before, improve tests