Moved functional tests into individual files