AssertionError more appropriate since internal check