Added a failing test for the titlesversions module. It exploits a bug in the current implementation where the same title is treated as different key if it's a different instance of the title.
Fixed the bug in the titlesversions module.