added config template test
all js pass so far
added domain test js
added environment js and fixed fact_values