Added unit tests for data export functions.