Fix warning invocation, make sure spec exercises that branch