m12's unit and acceptance tests