add tests for form flow handler
source refactoring
add redirection interceptor mechanism