Add test to check changing max connections does not crash anything

Test to show issue of #30