Generate string before test