Added addErr.js tests