Fixing issues with the creation of MockMethod not matching in all cases.