Setting up test environment