Add test for DB schema comparison

It allows to check if the DB schema obtained by applying
of migration scripts is equal to the one produced from
models definitions.

Change-Id: I08a95cbc19f05b802fe80d235bb8c17db5166541