tests on nullable datetime comparaison + a beter enum conversion