Fixing tests and adding tests for validation of socket urls