Generator for tests