unit test for ENUM that breaks on postgres #1020

This is a test case for #1020, unfortunately i could not bind this PR to the issue as there must be a bug in `hub` command... anyway, here it is.