Remove trailing whitespace.
Fix tests: use link titles instead of link ids.

The contentmenu link ids have changed. It's better to not rely on consistent ids
but use the link titles.