Thanks @doutriaux1. One thing I don't understand is how you report an error if test fails? At the end it just seems to be listing the titles? Can you improve it a bit? May be use try and catch and return 1 or some other number to inform that it is failed indeed.