travis: Add tests for printf hook implementations