Unit test for #155

I added a unit test for issue #155. I've tried to fix the issue as well, but that will be a no-go for me for now as I don't understand the internal design yet. The `JsonResourceListingInheritanceTests` has one `@Test` which is currently `@Ignored`. Remove the `@Ignored` to view the behavior subject of issue #155.