Fix issue with long running jasmine tests