Refactored metadata tests for an upcoming unix drive test.