Add test case for bug #12 (rhbz#1017957)