added mpas_test
adding mds code to derive classification
resolved nasty issues, mpas_test converts ok