Remove trailing slash from generated URL, fix test