Changed way memory is allocated for tests. (Half available RAM / 2)