regressions tests added to prevent issue #2 (and similar) in future