MDL-61981 filter_mathjaxloader: add unit tests