ping removed, added function test case