Changes the way API requests are handled.
Fixes typo.
Adds test for empty hasMany data.