Fixing some JSHint errors.
Made test valid by stopping test causing its own success. Fixed JSHint error.
Fixed JSHint error.
Fixed a couple of JSHint errors.