test dt function