Add test for JMR factory