Bug fixed and passed test for genSpecStandardMath