Fixed tests.
Added missing @Test annotations.
Added missing test for IOException.