CON-1809 | Fix overlapping of anchored element

could you also include tests for situation when the particular history method doesn't exist?