Assert context is properly set