Fixed lens.Socket and tests.