added tests and license files