test: add licence header and switch to LGPL

Checked with and got OK from Martin.
README: update list of used LICENSEs