Added JUnit test for setValue()