Add integration test
Only parse url if we need to