Wrote test for url generation and fixed it up a bit

@r-medina @sjkaliski 
always use camel case. only the constants have underlines because they're all caps