Have you considered writing the test like [inline-in-constructors](https://github.com/scala/scala/tree/2.12.x/test/files/instrumented/inline-in-constructors) ?