adding @Test(expected ) test