Unit test, type cast