added tests for callbacks and buffering
changed test to test callbacks in order
more extensive tests for executing callbacks in order
changed test to listen to `flushComplete`
changed flushComplete to flush
added test for client-side buffer cleanup
remove  from tests
Merge pull request #157 from albertyfwu/bug136_tests

added tests for callbacks and buffering