add more tests for codec