Made unpickling test CWD-independent

Refs #24007.
Frankly, I don't like adding trailing commas for function arguments. I understand it for list or dict though.