Changed hard coded port and len to constants.
Refactored tests for server : added some variables.