TST: more robust metadata test