tests: Add a test for max_sockets