Fixes method name
Fixes metadata reference validation
Adds Repository tests related to response metadata and returned collection type