various - fix compile warnings dealing with Q_REQUIRED_RESULT
also add some more unit testing
Differential Revision: https://phabricator.kde.org/D20945