Renamed cmd_pd for case insensitivity and fixed tests