Add test to check it doesn't break when using a wrong data type as dictionary