fixed broken ejs adapter
add tests for ejs