add tests for -parts and -memlimit