Tests and fixes for retrieving single resource by direct link