replace tanslate directive with translate filter and fix test