fix unit tests for IDEA.

Change-Id: Ibb730a561f87324cfa9d3ac202ba53b09bfdca83
Reviewed-on: http://gerrit.dmdirc.com/3966
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>