Added license copying and config files, fixed tests