Moved functional tests into their own files.