add constructor test case