Made unpickling test CWD-independent

Refs #24007.