Add gitter chat badge.
Fix broken test cases.