Finished tests for residual