Changed bencode.h. Added a possible test.

Update bencode.h to new bencode parser. Also added a possible test for
bencode parser.