Added a constructor and test case #121