Adds test for the case described in #5