Add test case for SourceForge Bug #1299