add test for nested hasMany
fix pluralize issue #15