Check that optional dependencies are not required.

Closes #400
Merge pull request #412 from ChrisBeaumont/400

Test that optional dependencies are...optional