core: Add test for mac address format

The patch adds a unit test to cover the used patterns
list for verifying the correct format of a mac address.

Change-Id: I74c6c310be787a1bea81f9d344d91e80f48cdc2b
Signed-off-by: Moti Asayag <masayag@redhat.com>