add common test to MDS and STP