Stabilization of Flow

Add unit test for Flow to test sequence.