limit memory in tests