Add a test reproducing issue #131