add unit test for AVErrorDetectionType