test(main.js): add test cases for templating with assets