r21490: Add some tests for the EJS code