added 'throws' clauses for readability

previously try catch loops were used in test bodies. As tests are now
marked with throws, they are not necesary, reducing code size