Add tests
Add test for the case of downing mysqld
Add travis setting