added test for connectionCommands._saveConnection