Adding test helper to test private methods

assists in https://github.com/owncloud/apps/pull/1941
Also for all occurrences below.