adding some tests
added licence info