assert is compiled away with NDEBUG, so can't assert on function calls that matters.