test breadcrumbs generation

I'd like to move the breadcrumbs generation outside the admin, but I'm afraid… there are no tests! Let's write something that gets us 100% code coverage (although some lines are only partially covered).