TRUNK-3912 

Task does not turn off automatically when uninstalling the module associated with it
Did you try using the @should with https://wiki.openmrs.org/display/docs/Generate+Test+Case+Plugin to generate the tests?