improve test, add license