added a first bunch of tests for M2