ode: added tests for memory handling