Reduce CPU and Mem usage in unit tests