Preparing test environment