fixed tests

Added missing Exceptions.

Bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=406047