set up test requirements with extras_require

Fixes #3060.
address review comments for NO_INSTALL_REQS
Merge pull request #1395 from djmitche/bug3060

set up test requirements with extras_require