Added a license and fixed broken test