Unit test for ZF-1.12.7 (issue #378 & #381)

Unit test for ZF-1.12.7 (issue #378 & #381) regarding select statements with ordering direction, multiple order fields and conditional ordering.