fixed date testing bug