make canary test used shared function