Fix socket events tests

Hopefully fixes #12.