AFI: fix thumbnail retrieval
Fix type checking tests for AFI data