fix CHECKS in test