[test] add ping tests and small fixes