New type test and associated bug fix