added two tests for --to and --from