Fixing JSHint errors
Fixing up broken test by checking in image (otherwise a seperate process has to be started which is a PIA)