Added ExchangeFactoryTest and changed Exchange to fit the test.