TRUNK-3644: Added more tests and support for modules in OpenmrsProfile