Implement "make test"
Improve error messages