added tests for URL substitution