Setting up a test environment