[CON-23] update SecurityExceptionTest to work around compatibility issue between thrift and gradle exception