add test for js/css mode