Raise AssertionError when giving bad scheme name.