fixed issue with time range
fixed integraiton tests