add extra tests to fix some decode bugs