fix viewpath for ejs include
fix unit test for rewire new apis