Added tests for all methods in QStringReg