bgrep: add test