Various fixes; run testcases as part of the nightly build.