Namespace tests and add licence header