Added error capturing to pairstest.js

- Also increased screenshot timeout to 3 minutes