improved tests for ping listening and enckey being set
improved tests for ping listening and enckey being set