Fixes broken anchor command tests

[724](https://trello.com/card/editor-insert-rate-inserts-the-rate-at-the-end-of-a-paragraph/4edf804c8dc852be774fbd18/724)