handle module errors in jasmine tests.