Added test cases for Java triangle enumeration example jobs
Scala triangle enumeration examples behave like their Java counterparts