harden tests with set field