changed wait condition to better behavior
added tests for puppetssh