fixed Makefile.am
checked timestamps before updating the test sources
fixed sources generation
fixed main source generation
typo