Update code documentation of upgrade.php and corresponding unit tests