Made test only test one thing and fixed jslint errors