Wrote test for url generation and fixed it up a bit

@r-medina @sjkaliski 
This commit resolves #9 
word 👍