bad cast in exp10 unit test