Test setting :mode with proc