remove redundant check in tests