add tests for Socket service
add karma test for controller and service