That is exactly what is checked already, an exception will be thrown otherwise.

These tests are not to make sure that someone doesn't screw up the versions.json file, they are to make sure the phpBB code to fetch them is working properly.