build: Add testing requirements file.

This makes hardcoding the testing package in .travis.yml unnecessary, and makes
it easier for users to test locally.