Add license headers. Improve test style.