Adding some test to JUnit and implement Threads