func test in routes-helper-spec