Adding test helper to test private methods

assists in https://github.com/owncloud/apps/pull/1941
Erm?