Removes useless code

This commit removes a bunch of useless code in the deserializer tests.