Added decode tests
Finished decode tests