Updated the unit tests to support Qt5.0.