added test case for build markup flow

Added test cases for build markup flow and all test passed!
Hurray!!!
added code to main module