Added Tests and Licence.