Fixed issues to test midpoint

Fixed issues with setting integration method as a parameter so that I
could do some system tests with the midpoint method