Update tests
Some JSHint fixes