fix tests, add license