added test for from and to dates