Move tests from other open-source projects to third_party/

This keeps separation between original sources of code more clear. Code from
other projects should go in third_party, with a license, from now on.