added test for bug 540
Merge pull request #491 from surface-smoothers/test.for.bug540

added test for bug 540