too many unit tests cause a stack overflow

A Descriptive Title (e.g. "Simulator Freezes Launching App in Eclipse")

As of a certain amount of tests (~50) a stack overflow is generated and tests start failing.

The Environment

Windows 10
Eclipse version: any, the one I'm currently using is Eclipse Oxygen
SDK: any version, the sample project is a 2.4 sdk compatible one

A detailed description of the issue

When the amount of unit tests exceed a certain level (about 50 tests) stack overflow errors are being thrown and can even result in causing the simulator to crash.

About 50 tests:
[IMG2=JSON]{"data-align":"none","data-size":"full","src":"https:\/\/s2.postimg.org\/bd1l80rmh\/tests_start_failing_as_about_50_tests_with_stack_overflow.jpg"}[/IMG2]

Adding more tests (all tests fail now and can even result in a simulator crash):
[IMG2=JSON]{"data-align":"none","data-size":"full","src":"https:\/\/s2.postimg.org\/e74qlnopl\/tests_all_fail_when_adding_even_more_tests.jpg"}[/IMG2]


Steps to reproduce the issue

Use the supplied test project, you can verify that when eg only 2 test files are included (about 36 tests) that everything works fine.
Once there are more than 50 tests things start going haywire...

A code sample that can reproduce the issue (in email only if preferred)

I'll mail you a sample project to reproduce this issue.