Cleaned up TestPing and completed the check functionality