test: Add DoS connection rate unit test