Add a test for removing modes.

Change-Id: I4d069ddb004f7da58f847002d5cec54ad2836f73
Reviewed-on: http://gerrit.dmdirc.com/3965
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager