Add test cases for dumping of invalid values