Adapted test to Test::postgresql