Convert tests to junit tests, update build script for test

SpatialStatsToTerminalTest is still suppressed, awaiting data.

Remco