Made unpickling test CWD-independent

Refs #24007.
Nice! Might be helpful to include an explanatory comment so this doesn't get inadvertently removed. Also a habit I have is to include a trailing comma on lines like this so if more arguments are added later, we don't need to modify the line again.