rewrite events.test.js to R-C-U-D