Add test for bad cases of deserialise
Add test for bad cases of deserialise

These are the cases where the deserialize function must give exceptions.

Contributes to issue CURA-1278.

onitake/Uranium,onitake/Uranium