Moved URL function inside of parameter test