Moved test and added missing license headers