[TEST] Wait for nodes before calling the API stats API