add the test code of the markingmode