refactored "Adding methods for fetching by a stored URI." and added tests for new method