Added tests for setter
Changed code style
Removed duplicate test