update unittest to match handler behavior