Unit test cases for balance export

cc @sheetalk