more tests
gcc<4.8 compat + misc
rewrite test/assert so that it works in release too