Adds tests for rebinding write defs