adding junit for the MathHelper and fixing the MathHelper based on the
test results