Unit test utilities