Added first tests for decode