Added regress test for BUG #48 (fixed #48).