Update test code to compare with real type rather than string value.
Reduce type paremeters of Binding

Before, Binding supports Function only. Now it also supports Value.