update to pass jslint
fixes around failing tests
update test to get another one passing