Fix data structure for test json