Improved tests
Fixed the license headers