Add test for bug1