ui-flow & unit tests