Adapting test code with new api format (collection+json adapted format)