chore(npm): refactor packages
chore(socket-factory): add missing tests