fixed mpde
fixed tests