Add licenses for tests and test data

- Add license headers to source files (years based on commit dates) in `src/test` as well as `qa`
- Add `README.md` to `src/test/data` specifying MIT license

Fixes #3848