Add tests around IM 2 and fix LD r, n