Define test helper in proper place