sets up test infrastructure