fix HttpCodec decoder
more tests for leveldb and minor fix