Write tests fo data handler.