Error => AssertionError for .throws