add serves index.html test and refactor
add smoke_test.js