Made test side effect free.