[DDC-2775] Tests reproducing DDC-2775
[DDC-2775] Bugfix
Fixed tests for pgsql: was using reserved keyword as table name
Fixed tests failing in pgsql because of used of a reserved keyword
Cleaned up tests for DDC-2775
Inlined the model for the DCC2775 test case inside the test class
Merge pull request #837 from mnapoli/DDC2775

DDC-2775 Tests and fix