thepeg: add HEAD, improve test