Switch test programs to a BSD license

It concerns only the files in 'tests' directory.