Fix some incorrect test setup.