in test data providers, use objects instead of JSON
add Resource::getId()
fix style
change variable name
Merge pull request #20 from easybiblabs/topics/resource-get-id

add Resource::getId()