coorection to complex case in logm and adding more tests (mpower compiles also)