fix build under ubuntu 14.04
image: bit of tracing
tests: fix leak
tests: more verbose