Make metadata tests table-driven