Add custom testing in compilation for built-in event loop

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>