Implement getter and setter for exchange rate; add unit tests