I don't know if casting in Test is good idea