Simplify creating DynamicIntProperty in tests.