Adds test library and makes internals from Domain visible to it.