Fixed getStructure test, after changing the API