Fixed mem leak and failed tests in ex32