Test for mac addresses more robustly.