Spain to use artificial intelligence to automate testing