Add unittest for bug/1