Added test coverage to restore subcommands