Add test cases and configurable reconnection intervals