Add test script for bug 5999.