xtea-test: Use struct allocation functions from the API