Adds test for #122

Adds a test to show the error on #122