Fixing deprecated and put uniqueness in matricula. Creating tests too.