Added first class tests for MGFramework::toInt