resolve out memory in test