Added missing tests and fixed bugs for type decoding