runtime API misuse rejects instead of throwing

add assert fails