Improve test messages, allow running tests through setup.py

Improve test messages by using assertIn instead of assertTrue, so that a useful message is displayed.