new style of privkey mock in test