Add MODE and QUIT tests