adds test for highlighting a bug in anonymous class handling