Integrating tests with build scripts, and improving tests.