Add test for trailing comma in hash