Completed writing tests for manual patching. Closes #4