silly bug fix for compact encode
adding more tests for compact encode
this test is passing now after compact encode fix
adding more compact decode test cases