Rename Gain_test_code to get_test_code