Created JUnit test for SocManager and updated the SocManager