throw an exception if StringFilter is constructed with illeagal parameters
unit test for StringFilter

test thrown exceptions