Changed test directory structure.

Makes the tests directory consistent with current practice across most PHP projects. Separates the directories of the test sources and utilises composer for autoloading.