Added tests to prove exception is not thrown anymore.