Improved test coverage. Added tests for MScript and MFunction.