Changed order of output and added a script to automate tests