add license
fix test code