John Swinney was pushed on long waits for victims of crime and the state of the NHS in Scotland as he took questions from MSPs.