testing triangle JUnit