tests the datahandler code