OOION 1396. Improve ims status tests and fix status builder bug.

@jamie please review...