add pytests for 'gpt rename' and 'gpt swap'