fixed unit tests and namespaces
added licensing