Added Unit Tests for the Polymorphic setter