Add tests for the --pivot option