added method get_by_url() and tests