minor common test refactoring
fixed failing server test
added test for receiving a ping
more prototyping and tests