set up test requirements with extras_require

Fixes #3060.