tests: install tests correctly when builddir != srcdir
tests: add uninstall hook