Fixed Unit Test failed by applied generic