Added extra assertion to test whether url is null.