add tests for #695, #698

refs #695, #698, #308