adding unit test for exchang