Make time interval test not dependent on intervalstyle

Fixes testing from under cartodb/lib/sql