Covered variable length decoding with tests, discovered the bug in my implementation.

Signed-off-by: Martin Evans <martindevans@gmail.com>