EDMONTON — Mounties are testing a program that could eventually see criminal defendants battle a new opponent in court — artificial intelligence.