Barcelona star Lionel Messi will have to face a Spanish court to defend himself against allegations of tax fraud.