Test fixed, bug with GoAway sent in responce to GoAway
Removed duplicated line
Code refactored