Added licence and some more tests