Update tests to check Exception