more tests against delay, found and fixed a bug with error handling in interval, too