Testing with json unmarshaling