Add test case for bug 486580