Testing

Tests now match API changes.
They are methods you can define, which are called after connecting and disconnecting.