removed test_residual