Check ftype attribute (if defined) on test output datasets.

Only works for newer API driven tests.
Merged in jmchilton/galaxy-central-fork-1 (pull request #347)

Check ftype attribute (if defined) on test output datasets.