Fixed a test not finishing in release