Fixing the remainder of the Karma tests to reflect new socket changes