Fix broken test

Before this fix, test coverage was reporter in the middle of running tests