fixed unit tests to expect correct exceptions