Fix installing test data

The order of operations in the Makefile.PL was wrong, so it wouldn't try to install the included shared data.  This fixes that, and includes a couple minor cleanups.

Fixes RT#95572