[residual] Add basic test for SMSResidual