Test infrastructure for TDD