Migrate the ad-hoc tests into a structured test suite.