Tests for decorator_utils and a fix for non-methods with @delay