Added support for test fixtures, improved API.