Add sub-resource test