Fix tests for distcheck.