Revised tests for rawDeviceEventListener.
In relation to issue #6
Merge pull request #9 from kmpm/segfault

Revised tests for rawDeviceEventListener.