Unit test infrastructure