Add test, fix license