fix undefined $url
some tests for database URLs