Write a constructor test case.