fixed fetch currencies + improved test coverage

Fixes #1855