workaround a type inference issue in test cases