clean up test

remove some comments and also print out the intermediate form of the
template