Use determine_source to make more code clearer
Framework for testing dialog tracking
Add UTs for the Flow, FlowTable and DialogTracker