with pytest.raises() were only checking the first exception cases, hence, created the multiple
with pytest.raises() cases to test various exception cases.