Add more tests.

Bugfix: modify the error message for an
invalid MAC address.