add tests for api resource helper
fix incorrectly singular linked resources
add tests for nested resources
regenerate test data for new tests