add module stage and test stage into pipeline