Added test for testing correct return type of genMac.