fixed jshint and added broken test