Added license, added some tests