Rename couch_pb_codec:get_command_num/1 to get_command_id/1

add more tests for get_command_id/1