write main test to resources/xxx.html