Added releaseAll() in afterEach, isolated a couple of crash-prone test cases