using doctest
Merge branch 'luoxing91-master'
append_output.sh for 3-tier and null