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

Fixes bnc#901586