added listResources and accompanying test