Wrote simple test for data logging code