fixed missing var
added tests. fixes #1
removed recursive ping
0.1.1