add more tests for decode