Fixed bug in decoding and added testing suite