Move all the unit tests into the top-level tests folder.

This is what the Moodle PHPunit framework expects. This avoids having to
manually edit the phpunit.xml file.