Fix heap parameters of tests to avoid heap overflow.