update tests
Fix check postgres has table