Avoid double slash in URI with no prefix

Change here avoids double slash when the prefix is empty, which I think addresses part (if not all) of #11.

(Also couldn't resist adding a comment when I worked out what list_tests was doing...)