fixed  java.lang.OutOfMemoryError: unable to create new native thread
for tests