Replace request with nipple in tests. Closes #1245