Unit tests for codec detection algorithm