Test for Trac746
Fix for Trac746