flow tests updated and pass