Adds test case for #548.