Since the `type` wasn't in the response when syncing version and retrieving this data the `APIVersion.type` was returning `UNKNOWN` and then the `APIVersion.commit_name` was incorrect. By adding the `type` to the API response the `Version` it's completed. #3203
My idea with this test is to avoid these kind of problems (adding / removing a field and do not notice it). So, I personally prefer to be notified by a test about these changes. Maybe there is a better way to do it but I don't know.