Fix PHPUnit ORM Tests to work with Postgres

Change-Id: Ia4321727f6f1eab65c91d9876f87d51b545a72c2