working on test cases for data handler