Bug 887670 - [Test][System] Unit test for ValueSelector

based on #10711 Value Selector
use sinon for html mockup
reduce a variable in Value Selector