Add tests which check that the generated JSON conforms to the schema
Change file inspector schemas to work with setuid flag

Fixes bnc#901586
Merge branch 'review_141017_support_setuid_mode_flag'