updated test cases for Qt4.