Added unit tests for tamper detection.