Updated license and add tests