Add the thread/memory limit tests.