Test for null inputs and JUnit4 Testclass writen