added testcase, used constructor instead of setter
fixed CS