fixed tests

Added missing Exceptions.