Fixed exception running all tests