modify test for typescript 1.0.0