Add tests for the details urls

I decided to allow trailing slashes for now because they seem to work
internally (at least thos package seem to be installable) and quite a
few use it.

For review and visibility @joneshf and @wbond.