Fixed misc.py unit tests, #554
Fixed fx.py unit tests, #554
Fixed typemap.py unit tests, #554
Fixed mx.py unit tests, #554
Fixed ad.py unit tests, #554