updated tests
auto enclosing in <div> and <span>
compiler seems stable, need more tests