[TASK] Reduce memory footprint of unit tests