Add codes for test upgrade from V0.5 to V0.7