Added test to reproduce #38.
Merge branch 'master' into bug-wrong-sql-38
Fixed #38.
Merge branch 'master' into bug-assosiation-union