Fix #105. Regression test for #105 had an error so I fixed that also. Updated refactoring-test example.