filter: add license headers
filter: add some tests