Automated test added, see #168