- added a test case for string metrics.
- refactored to reuse answers for both getByPoints and getByResolution.