Testing

Tests now match API changes.
What would these newly added hooks, post_connect and post_disconnect, do?