Add tests for StoreApi and make StoreApi.collections a property so it can be dynamically created.