added try-catch blocks for Unittests which expect Exceptions in order to test all possibilities in a for loop