Add tests for imidas_r