BUGFIX: regression tests + error messages against/for issue #40