Dry up tests by moving regex for uuid pattern into a macro