Add test for bug1

@MatthiasBrantner can you confirm that this is the expected result?