added test provided for issue 596

provided by @chuck-jove on
https://github.com/propelorm/Propel/issues/596