pothos-library: only complete flows at top-level, added tests