adding mi test functions