Fixed licenses and unit tests