Prepare test environment from options