Fixed dc test logic