add interval and timeout tests