control.js tests fixed