Working example of checkMAC