Common methods for tests