test route before call