TST: improve datedetector error reporting