Use options.generate_tests in Generators

Apply a check to all generators in Molgenis core:
if(options.generate_tests)
   <generate test classes>
else
  <generate classes>