test hooks can modify internals