proper test setup and patch