test suite, copy over improved test suite from atem

Now our test suite equals to atem 55e2a585. The tests still need to be fixed.
tests, fix tests for test compiler changes
tests, don't use useless option --hash
tests, add clean rule for local tempdirs

They are not automatically removed when test fails.
Merge branch 'tests'

* tests:
  tests, add clean rule for local tempdirs
  tests, don't use useless option --hash
  tests, fix tests for test compiler changes
  test suite, copy over improved test suite from atem