Handle and test MAC errors in secret box