add test when no url is present in constructor