added test cases for stagemodel.