Improved testing framework and documentation.