wrote unittests for data