TDDing Sudoku in JavaScript