Added jshint, fixed bad  test case