unit tests for autoflow